# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge-utils
pkgver=1.7
pkgrel=0
pkgdesc="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
url="https://wiki.linuxfoundation.org/networking/bridge/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="autoconf linux-headers"
source="https://kernel.org/pub/linux/kernel/people/shemminger/bridge-utils/bridge-utils-$pkgver.tar.xz"
prepare() {
	default_prepare
	autoconf
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libdir=/usr/lib \
		--includedir=/usr/include
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="e9bc27bddcc8cb644a7e02da615e262b42c8600e5aefa5f02771882be9e8a50b33e533b8711c8591be3397b323c10056103e611f620b92f344ce6f59d603d301  bridge-utils-1.7.tar.xz"
